<?php echo $this->render('system/setting/_tab.phtml');?>
<form action="" method="post">
<?php echo $this->form()->hidden('referer', $this->referer) . "\n";?>
<div class="body">
	<table class="form">
		<tr>
			<th colspan="2"><?php echo $this->language('SETTING INFORMATION');?>:</th>
		</tr>
		<tr>
			<td width="180"><label><span class="red">*</span> <?php echo $this->language('Name');?></label></td>
			<td>
				<?php if($this->row->getName()) { ?>
				<span class="show"><?php echo $this->row->getName();?></span>
				<?php echo $this->form()->hidden('name', $this->row->getName());?>
				<?php } else { ?>
				<?php echo $this->form()->text('name', $this->row->getName(), array('size' => '20', 'maxlength' => '50'));?>
				<code><?php echo $this->language('Between 1~50 characters and construct by [a-zA-Z0-9_-] and begins a letter.');?></code>
				<?php } ?>
			</td>
		</tr>
		<tr>
			<td><label><span class="red">*</span> <?php echo $this->language('Value');?></label></td>
			<td><?php echo $this->form()->textarea('value', $this->row->getValue(), array('cols' => '60', 'rows' => '4'));?></td>
		</tr>
		<?php if($this->row->getName() && !$this->row->getIsSystem()) { ?>
		<tr>
			<td><label><?php echo $this->language('Is System');?></label></td>
			<td>
				<?php echo $this->form()->select('is_system', $this->row->getIsSystem(), array(), array('0' => 'No', '1' => 'Yes'));?>
				<code><?php echo $this->language('It can not be Delete if it is "Yes".');?>.</code>
			</td>
		</tr>
		<?php } else { ?>
		<tr class="hidden">
			<td colspan="2"><?php echo $this->form()->hidden('is_system', $this->row->getIsSystem());?></td>
		</tr>
		<?php } ?>
		<tr>
			<td><label><?php echo $this->language('Description');?></label></td>
			<td><?php echo $this->form()->textarea('description', $this->row->getDescription(), array('cols' => '60', 'rows' => '4'));?></td>
		</tr>
		<tr>
			<td></td>
			<td colspan="2">
				<button type="submit" name="submit" value="submit"><?php echo $this->language('Submit');?></button>
				<?php
				if($this->row->getName() && !$this->row->getIsSystem()) {
					echo $this->render('include/deleteButton.phtml');
				}
				?>
			</td>
		</tr>
	</table>
</div>
</form>
